package qualomelhor.database;

import javax.persistence.Id;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;

import java.io.Serializable;

@Entity
public class PosicaoMaosDB implements Serializable {

	private static final long serialVersionUID = 0;

	@Id
	private Long id;
	@Indexed
	private String nome;
	private int subMaoDId;
	private int subMaoEId;
	private int posMDX;
	private int posMDY;
	private int posMEX;
	private int posMEY;
	private int bezierDX;
	private int bezierDY;
	private int bezierEX;
	private int bezierEY;
	private float rotacaoAdicionalMaoD;
	private float rotacaoAdicionalMaoE;

	public PosicaoMaosDB() {

	}

	public PosicaoMaosDB clone() {
        return new PosicaoMaosDB(new String(nome), this.subMaoDId, this.subMaoEId, this.posMDX, this.posMDY, this.posMEX, this.posMEY, this.bezierDX, this.bezierDY, this.bezierEX, this.bezierEY, this.rotacaoAdicionalMaoD, this.rotacaoAdicionalMaoE);
    }

	public PosicaoMaosDB(String nome, int smDId, int smEId, int pMDX, int pMDY, int pMEX, int pMEY, int bzDX, int bzDY, int bzEX, int bzEY, float rotMaoD, float rotMaoE) {
		this.nome = nome;
		subMaoDId = smDId;
		subMaoEId = smEId;
		posMDX = pMDX;
		posMDY = pMDY;
		posMEX = pMEX;
		posMEY = pMEY;
		bezierDX = bzDX;
		bezierDY = bzDY;
		bezierEX = bzEX;
		bezierEY = bzEY;
		rotacaoAdicionalMaoD = rotMaoD;
		rotacaoAdicionalMaoE = rotMaoE;
	}

	public Long getId() {
		return id;
	}

	public String getNome() {
		return nome;
	}

	public int getSubMaoDId() {
		return subMaoDId;
	}

	public int getSubMaoEId() {
		return subMaoEId;
	}

	public int getPosMEX() {
		return posMEX;
	}

	public int getPosMEY() {
		return posMEY;
	}

	public int getPosMDX() {
		return posMDX;
	}

	public int getPosMDY() {
		return posMDY;
	}

	public int getBezierDX() {
		return bezierDX;
	}

	public int getBezierDY() {
		return bezierDY;
	}

	public int getBezierEX() {
		return bezierEX;
	}

	public int getBezierEY() {
		return bezierEY;
	}

	public float getRotacaoAdicionalMaoD() {
		return rotacaoAdicionalMaoD;
	}

	public float getRotacaoAdicionalMaoE() {
		return rotacaoAdicionalMaoE;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public void setSubMaoDId(int subMaoDId) {
		this.subMaoDId = subMaoDId;
	}

	public void setSubMaoEId(int subMaoEId) {
		this.subMaoEId = subMaoEId;
	}

	public void setPosMEX(int posMEX) {
		this.posMEX = posMEX;
	}

	public void setPosMEY(int posMEY) {
		this.posMEY = posMEY;
	}

	public void setPosMDX(int posMDX) {
		this.posMDX = posMDX;
	}

	public void setPosMDY(int posMDY) {
		this.posMDY = posMDY;
	}

	public void setBezierDX(int bezierDX) {
		this.bezierDX = bezierDX;
	}

	public void setBezierDY(int bezierDY) {
		this.bezierDY = bezierDY;
	}

	public void setBezierEX(int bezierEX) {
		this.bezierEX = bezierEX;
	}

	public void setBezierEY(int bezierEY) {
		this.bezierEY = bezierEY;
	}

	public void setRotacaoAdicionalMaoD(float rotacaoAdicionalMaoD) {
		this.rotacaoAdicionalMaoD = rotacaoAdicionalMaoD;
	}

	public void setRotacaoAdicionalMaoE(float rotacaoAdicionalMaoE) {
		this.rotacaoAdicionalMaoE = rotacaoAdicionalMaoE;
	}
}